package com.mz.common.utils;

import java.util.Random;

public class NicknameUtils {

    private static Random random = new Random();
    private static String prefix = "dsys";

    public static String generateNickname(){
        int length = 6;
        StringBuilder stringBuilder = new StringBuilder();
        for( int i=0; i<length; i++ ){
            stringBuilder.append( Math.abs(random.nextInt(10)) );
        }
        return prefix+stringBuilder.toString();
    }
}
